﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace YouMa.Model
{
    [Table("Message")]
    public class Message
    {
        public int Id { get; set; }
        //作者
        public int UserId { get; set; }
        public string Title { get; set; }
        public int ThemeId { get; set; }
        //信息内容
        public string Msg { get; set; }
        public DateTime CreateTime { get; set; }
        public string CreateAddress { get; set; }
        public string CreateAddress1 { get; set; }
    }

    [Table("DianZan")]
    public class DianZan
    {
        public int Id { get; set; }
        //信息的点赞用户
        public int UserId { get; set; }
        public int MsgId { get; set; }
        public DateTime CreateTime{get;set;}
    }

    [Table("PingLun")]
    public class PingLun
    {
        public int Id { get; set; }
        //评论者
        public int UserId { get; set; }
        //被评论的信息
        public int MsgId { get; set; }
        //评论内容
        public string PingLunContent { get; set; }
    }

    [Table("FenXiang")]
    public class FenXiang
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public int MsgId { get; set; }
        public string FenxiangContent { get; set; }
    }

    [Table("ShouCang")]
    public class ShouCang
    {
        public int Id { get; set; }
        //信息的收藏用户
        public int UserId { get; set; }
        public int MsgId { get; set; }
        public DateTime CreateTime { get; set; }
    }


}
